﻿@model Vacan.Models.Vacancy
@{
  ViewBag.Title = "Добавление вакансии";
}
<h2>
  Добавление вакансии</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
  @Html.ValidationSummary(true)
  <fieldset>
    <legend>Новая вакансия</legend>
    <div class="editor-label">
      Название
      <!--@Html.LabelFor(model => model.Name)-->
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.Name)
      @Html.ValidationMessageFor(model => model.Name)
    </div>
    <div class="editor-label">
      Описание
      <!--@Html.LabelFor(model => model.Description)-->
    </div>
    <div class="editor-field">
      @Html.TextAreaFor(model => model.Description)
      @Html.ValidationMessageFor(model => model.Description)
    </div>
    <p>
      <input type="submit" value="Добавить" />
    </p>
  </fieldset>
}
<div>
  @Html.ActionLink("Вернуться ко списку", "Index")
</div>
